import { useState, useMemo } from 'react'

export const useName = () => {
  const [name, setName] = useState('')

  const handleChange = useMemo(() => (e) => setName(e.target.value), [])
  return {
    name,
    handleChange,
  }
}
